package com.cutJar.core;

import com.cutJar.Exception.ResourceNullException;
import com.cutJar.core.impl.CutJARImpl_Def;
import com.cutJar.core.impl.CutJARImpl_Main;

public class BuildJar {
	String jreDir = "C:/Program Files (x86)/Java/jre1.8.0_111/lib";
	public void cutMainJre() throws ResourceNullException{
		CutJARImpl_Main main = (CutJARImpl_Main) CutJARFactory.getMainCutInstance();
		main.param(jreDir).cutPre().cutStart();
	}
	public void defMainJre() throws ResourceNullException{
		CutJARImpl_Def defCut = (CutJARImpl_Def) CutJARFactory.getDefCutInstance();
		defCut.param("charsets", jreDir).cutPre().cutStart();
	}
}
